home *** CD-ROM | disk | FTP | other *** search
/ Best of www.BestZips.com (Collector's Edition) / Best of WWW.BESTZIPS.COM Collector's Edition (JCSM Shareware) (JCS Marketing).ISO / fileutil / eddy8h.zip / EDDY.USE < prev    next >
Text File  |  1997-02-04  |  8KB  |  164 lines

  1. ;
  2. ;                            EDDY.USE
  3. ;
  4. ; This file is an example, illustrating how the EDDY.USE file may be
  5. ; set up to define:
  6. ;
  7. ; 1) Programs to be executed by EDDY in response to the "Point & Shoot"
  8. ;    commands - [Shift+F9] and [Shift+^F9].  Refer to EDDY.DOC, Section
  9. ;    14.1 for details.
  10. ;
  11. ; 2) Printer control strings, to be sent to your printer in response to
  12. ;    the [Alt+9] command.  Refer to EDDY.DOC, Section 14.3 for details.
  13. ;
  14. ; The point & shoot commands ("associations") come first in the file.
  15. ; After these, there is a section where printer control strings may be
  16. ; defined for your printer.  This section starts with a line containing
  17. ; "[printer]" (without the quotes).
  18.  
  19. ; You should build your own EDDY.USE file (with any editor or word
  20. ; processor that can create ASCII-only text files), to define the
  21. ; types of files and the programs you use most frequently, and the
  22. ; printer commands appropriate for your printer(s).
  23. ;
  24. ; Lines beginning with a semi-colon are COMMENTS ONLY, ignored by EDDY.
  25. ; They are included here to only clarify the examples.  Command lines
  26. ; have a leading blank, for readability only; the blank isn't required.
  27. ;
  28. ; The lines containing "Example n" are used to cross reference from the
  29. ; more detailed explanations in EDDY.DOC, Section 14.1.
  30. ;
  31. ;----------------------------- Example 1 -----------------------------
  32. ;      If you want to associate a program with subdirectories, use
  33. ;      "<DIR>" instead of a file specification. (Although, if you feel
  34. ;      you need such a program when EDDY is available, either you're
  35. ;      not familiar with the full range of capabilities EDDY offers,
  36. ;      or you probably have a requirement that would be a candidate
  37. ;      for an upcoming release of EDDY; if so, please let me know.)
  38.  | <DIR> C:\UTIL\DIRPROG   %w\%f  %t
  39. ;
  40. ;----------------------------- Example 2 -----------------------------
  41. ;      The following entries assume the "%EDIT%" environment variable
  42. ;      is set to the path for the text editor.  Use the editor, with
  43. ;      different key profiles, depending on file extension.
  44.  
  45.  *.AS? %EDIT%\E  /P%EDIT%\ME.PRO   %
  46.  *.DEF %EDIT%\E  /P%EDIT%\ME.PRO   %
  47.  *.EQU %EDIT%\E  /P%EDIT%\ME.PRO   %
  48.  *.MAC %EDIT%\E  /P%EDIT%\ME.PRO   %
  49.  *.STR %EDIT%\E  /P%EDIT%\ME.PRO   %
  50.  *.CPP %EDIT%\E  /P%EDIT%\CPP.PRO  %
  51.  *.C   %EDIT%\E  /P%EDIT%\C.PRO    %
  52.  *.H   %EDIT%\E  /P%EDIT%\CPP.PRO  %
  53.  *.H   %EDIT%\E  /P%EDIT%\C.PRO    %
  54.  *.HTM %EDIT%\E  /P%EDIT%\HTML.PRO %
  55.  
  56. ;      NOTE: For compatibility with earlier versions, a single "%", with a
  57. ;      space on either side of it, is treated the same as "%f".
  58. ;
  59. ;----------------------------- Example 3 -----------------------------
  60. ;      In the following lines, a "|" in the first position means "pause
  61. ;      after executing" to allow review of screen display before control
  62. ;      is returned to EDDY.
  63. ;
  64. ;      Pressing [Down] on a .ZIP file entry displays the following...
  65. ;      ...commands, in succession:
  66.    *.ZIP C:\UTIL\PKUNZIP -d  %f %@
  67.  | *.ZIP C:\UTIL\PKZIP -%@vm  %f
  68.    *.ZIP C:\UTIL\PKZIP -exof%@  %f
  69.    *.ZIP C:\UTIL\PKZDATE  %f
  70.  
  71. ;----------------------------- Example 4 -----------------------------
  72. ;      The following entries assume the "DOS" environment variable is
  73. ;      set to the path for MS DOS commands.  Use 'View' option for
  74. ;      other (non-ZIP) compressed files...
  75.  | *.LZH C:\UTIL\LHA V   %f | %DOS%\MORE.COM
  76.  | *.ARJ C:\UTIL\ARJ V   %f | %DOS%\MORE.COM
  77.  | *.ARC C:\UTIL\PKARC V   %f | %DOS%\MORE.COM
  78.  | *.ARC C:\UTIL\PKXARC  %f
  79. ;      This also illustrates the use of "piping" with EDDY.USE.  A "|"
  80. ;      within the command string (as opposed to one in the modifier
  81. ;      field -- which means "pause") is the normal DOS pipe symbol.
  82.  
  83. ;----------------------------- Example 5 -----------------------------
  84. ;      Assume "EXE" is self-extracting archive.  If not, why use
  85. ;      [Shift+F9]?  -- [Alt+F9] would be more normal.
  86.  | *.EXE C:\UTIL\FV V   %f
  87. ;
  88. ;----------------------------- Example 6 -----------------------------
  89. ;      Use Canyon State Systems' file viewing program on .GIF files
  90.  *.GIF X:\ETC\PICS\VIEWERS\2SHOW\2SHOW  %f
  91. ;
  92. ;----------------------------- Example 7 -----------------------------
  93. ;      Don't use the following command with [Shift+^F9] (because of "^"
  94. ;      in the modifier field):
  95.  ^ *.LST %DOS%\PRINT   %f
  96. ;
  97. ;----------------------------- Example 8 -----------------------------
  98. ;      After defining all the associations you want for various file
  99. ;      types, you'll usually want to define a default for any other
  100. ;      types of files (*.*).
  101. ;
  102. ;      Specify file types that should NOT be used when matching is based
  103. ;      on "*.*" (in this case, common non-text file types):
  104.  #  COM,EXE,DLL,BIN,OBJ,DRV,VBX,BMP,GRP,ICO,PIF,WAV,MOD,FO?,TTF
  105. ;      These exclusions stay in effect until another "#" line is used.
  106. ;
  107. ;----------------------------- Example 9 -----------------------------
  108. ;      Command to process any files not explicitly defined in Examples
  109. ;      1-7, EXCEPT as described above in Example 8:
  110.  *.* %EDIT%\E  /P%EDIT%\WP.PRO   %f
  111. ;
  112. ;----------------------------- Example 10 ----------------------------
  113. ;      An alternative to Example 9, displayed by pressing [Down]:
  114.    *.* C:\UTIL\DIFF  %w\%f  %t\%f > %@%n.DIF
  115. ;
  116. ;----------------------------- Example 11 ----------------------------
  117. ;      Next is a program that works with binary files rather than text,
  118. ;      so we change the list of excluded extensions accordingly:
  119.  #  DOC,TXT,C,CPP,H,PAS,AS?,MAP,INC,MAC,STR,EQU,DEF,NOT,INI,WRI,
  120. ;      Note that extensions shorter than 3 bytes are OK.  Also, to
  121. ;      specify a completely blank extension (or "no extension"), begin
  122. ;      or end the list with a comma.
  123.    *.* C:\UTIL\BINDIFF  %w\%f  %t\%f > %@%n.DIF
  124. ;
  125. ;----------------------------- Example 12 ----------------------------
  126. ;      A "#" line with no extensions means ALL files (including .COM
  127. ;      and .EXE) will be associated with any "*.*" commands following.
  128.  #
  129. ;----------------------------- Example 13 ----------------------------
  130. ;     The next command refers to a simple batch file that comes with the
  131. ;     distribution package, showing a way of copying any types of files
  132. ;     in the same (working) directory, without leaving EDDY:
  133.    *.* %h\EDDYCOPY  %f  %@%n
  134. ;     This, or a line very much like it, should be included in your own
  135. ;     EDDY.USE.  For further information, see EDDY.DOC, Section 11.6)
  136. ;
  137. ;**************  End of point-n-shoot command section  ***************
  138. [printer]
  139. ;******** Start of section containing printer control strings ********
  140. ;
  141. ; IBM ProPrinter / Canon BJ commands...
  142. ;
  143. DC2                        ; Set 10 cpi pitch
  144. ESC,'X',1,80               ; Set horizontal margins 1-80
  145. ESC,':'                    ; Set 12 cpi pitch
  146. ESC,'X',8,96               ; Set horizontal margins 8-96
  147. DC2,SI                     ; Set (approximately) 17 cpi pitch
  148. ESC,'X',7,132              ; Set horizontal margins 7-132
  149. ESC,'P',1                  ; Set proportional space mode
  150. ESC,'P',0                  ; Cancel proportional space mode
  151. ESC,0                      ; Set 1/8" line spacing
  152. ESC,1                      ; Set 7/72" line spacing
  153. ESC,'G'                    ; Set double-strike printing
  154. ESC,'H'                    ; Cancel double-strike printing
  155. ESC,'W',1                  ; Set double-wide character printing
  156. ESC,'W',0                  ; Cancel double-wide character printing
  157. SI,ESC,'S',0,ESC,'A',6,255 ; Set miniature printing
  158. ;
  159. ; HP LaserJet commands...
  160. ;
  161. ESC,'&k0s'         ; Set 10 cpi for HP LaserJet
  162. ESC,'&k4s'         ; Set 12 cpi for HP LaserJet
  163. ESC,'&k2s'         ; Set 17 cpi for HP LaserJet
  164.